package com.iuie.ns.system.maker.impl;

import com.iuie.ns.system.maker.AbstractMarkdownBatchMaker;
import com.iuie.ns.system.vo.code.SysCodeInfoVO;

public class MarkdownCodeInfoWithBAFormatBatchMaker extends AbstractMarkdownBatchMaker<SysCodeInfoVO> {

	public MarkdownCodeInfoWithBAFormatBatchMaker(String rule) {
		super(rule);
	}

	@Override
	protected SysCodeInfoVO getObject() {
		return new SysCodeInfoVO();
	}

	@Override
	protected void setObjectAttribute(SysCodeInfoVO codeInfo, String value, int index) {
		if (index == 1) {
			codeInfo.setCodeInfoValue(value);
		}
		if (index == 0) {
			codeInfo.setCodeInfoName(value);
		}
	}

}
